Function Reference

_StringRepeat

Repeats a string a specified number of times.

#Include <String.au3>
_StringRepeat( $sString, $iRepeatCount )

 

Parameters

$sString String to repeat
$iRepeatCount Number of times to repeat the string

 

Return Value

Success: Returns string with specified number of repeats
Failure: Returns an empty string and sets @error = 1
@Error: 0 = No error.
1 = One of the parameters is invalid

 

Remarks

None.

 

Related

None.

 

Example


#include <String.au3>

Msgbox(0,'',_StringRepeat("+-",40))
Exit